package com.owen.pojo;

import java.io.Serializable;
import java.util.Date;

public class Vegetables implements Serializable {

    //主键ID
    private Integer id;

    // 生产日期
    private Date createTime;

    // 菜名
    private String name;

    // 产地
    private String address;

    // 蔬菜照片
    private String addressPhoto;

    // 详情
    private String details;

    public Vegetables() {
    }

    public Vegetables(Integer id, Date createTime, String name, String address, String addressPhoto, String details) {
        this.id = id;
        this.createTime = createTime;
        this.name = name;
        this.address = address;
        this.addressPhoto = addressPhoto;
        this.details = details;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddressPhoto() {
        return addressPhoto;
    }

    public void setAddressPhoto(String addressPhoto) {
        this.addressPhoto = addressPhoto;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    @Override
    public String toString() {
        return "Vegetables{" +
                "id=" + id +
                ", createTime=" + createTime +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", addressPhoto='" + addressPhoto + '\'' +
                ", details='" + details + '\'' +
                '}';
    }
}
